package com.example.emqx.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

/**
 * File: FilterConfig.java
 * Author: liufudong@szyh-smart.com
 * Date: 2024/9/19
 * Description: FilterConfig class.
 */
@Slf4j
@Configuration
public class FilterConfig {
//    @Bean
//    public FilterRegistrationBean<Filter> loggingFilter(){
//        log.info("FilterConfig init");
//        FilterRegistrationBean<Filter> registrationBean = new FilterRegistrationBean<>();
//
//        registrationBean.setFilter(new MyFilter());  // 使用自定义的过滤器
//        registrationBean.addUrlPatterns("/*");       // 将过滤器应用于所有请求路径
//        registrationBean.setOrder(1);                // 设置过滤器的优先级
//
//        return registrationBean;
//    }
}
